#include "gtkcssarrayvalueprivate.h"
#include "gtkcsscornervalueprivate.h"
#include "gtkcssenumvalueprivate.h"
+#include "gtkcssimagevalueprivate.h"
#include "gtkcssnumbervalueprivate.h"
#include "gtkcssrgbavalueprivate.h"
#include "gtkcssshadowsvalueprivate.h"
return gtk_style_context_get_screen (priv->context);
}
+static gboolean
+render_icon_image (GtkThemingEngine *engine,
+ cairo_t *cr,
+ double x,
+ double y,
+ double width,
+ double height)
+{
+ GtkCssImage *image;
+
+ image = _gtk_css_image_value_get_image (_gtk_theming_engine_peek_property (engine, GTK_CSS_PROPERTY_ICON_SOURCE));
+ if (image == NULL)
+ return FALSE;
+
+ cairo_translate (cr, x, y);
+ _gtk_css_image_draw (image, cr, width, height);
+
+ return TRUE;
+}
+
/* Paint method implementations */
static void
gtk_theming_engine_render_check (GtkThemingEngine *engine,
{
GtkThemingBackground bg;
+ if (render_icon_image (engine, cr, x, y, width, height))
+ return;
+
_gtk_theming_background_init (&bg, engine, x, y, width, height, 0);
if (gtk_theming_engine_has_class (engine, GTK_STYLE_CLASS_SPINNER) &&